package com.cn.jinl.dao;

import com.cn.jinl.domain.Violation;
import com.cn.jinl.domain.ViolationExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface ViolationMapper {
    int countByExample(ViolationExample example);

    int deleteByExample(ViolationExample example);

    int deleteByPrimaryKey(String id);

    int insert(Violation record);

    int insertSelective(Violation record);

    List<Violation> selectByExample(ViolationExample example);

    Violation selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Violation record, @Param("example") ViolationExample example);

    int updateByExample(@Param("record") Violation record, @Param("example") ViolationExample example);

    int updateByPrimaryKeySelective(Violation record);

    int updateByPrimaryKey(Violation record);

    List<Violation> getPendingApprovalList(QueryForm queryForm);

    List<Violation> getApprovedList(QueryForm queryForm);

    int updateFdStatus(Violation violation);

    Integer countViolationToday();

    List<Violation> selectNewFiveViolation();

    List<Violation> getApprovedRecentList(QueryForm queryForm);
}